<template>
  <view class="quntuanListPage-main-header">
    <div class="quntuanListPage-main-title"
      >{{ title }}
      <text class="more-data" @tap="onMenu"
            v-if="isShow"
        >{{ subTitle }}<u-icon name="arrow-right" size="20rpx"></u-icon></text
    ></div>
  </view>
</template>

<script>
  export default {
    name: 'PageMainTitle',
    props: {
      //展示右侧菜单
      isShow:{
        type:Boolean,
        default(){
          return true
        }
      },
      //标题
      title: {
        type: String,
        default: () => '活动集市',
      },
      //更多标题
      subTitle: {
        type: String,
        default: () => '更多活动',
      },
    },
    //跳转页面
    methods: {
      onMenu() {
        this.$emit('menu')
      },
    },
  }
</script>

<style scoped lang="scss">
  .quntuanListPage-main-title {
    font-size: 36rpx;
    color: #333;
    font-weight: bold;
    border-left: 6rpx solid #0071fc;
    /*background-image:linear-gradient(left, #eff6ff, #ffffff);*/
    padding-left: 20rpx;
    .rbt {
      font-size: 20rpx;
      font-weight: 500;
      position: absolute;
      right: 30rpx;
      padding: 10rpx 20rpx;
      background-color: #dd524d;
      color: #ffffff;
      border-radius: 20rpx;
    }
  }
</style>
